#include <func.h>
int num=10;

int main()
{
    pid_t pid;
    pid=fork();
    if(0==pid)
    {
        printf("i am child,num%d\n",num);
        return 0;
    }else{
        printf("i am parent,,numm=%d\n",num);
        num=5;
        printf("i am parent,,num=%d\n",num);
        sleep(1);
        return 0;
    }
}